﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Computer
    {
        private string brand;
        private IUSB usb1;
        private IUSB usb2;

        public string Brand { get => brand; set => brand = value; }
        internal IUSB Usb2 { get => usb2; set => usb2 = value; }
        internal IUSB Usb1 { get => usb1; set => usb1 = value; }

        public Computer(string brand) 
        {
            this.brand = brand;
        }

        public void Start() 
        {
            Console.WriteLine("{0}开机中...",this.Brand);
            Console.WriteLine("{0}开机成功！", this.Brand);
        }
        public void End()
        {
            Console.WriteLine("{0}关机中...", this.Brand);
            Console.WriteLine("{0}关机成功！", this.Brand);
        }

    }
}
